Ruby vs Python performance